
package uk.addie.mp3fixer.widget;

import java.nio.file.Path;

import uk.addie.mp3fixer.MP3Fixer;

public enum Scope {
    COLLECTION {
        @Override public Path pathForScope() {
            return MP3Fixer.getRoot();
        }
    },
    ARTIST {
        @Override public Path pathForScope() {
            return COLLECTION.pathForScope().resolve(MP3Fixer.fileSelector().getArtist());
        }
    },
    ALBUM {
        @Override public Path pathForScope() {
            return ARTIST.pathForScope().resolve(MP3Fixer.fileSelector().getAlbum());
        }
    };
    abstract public Path pathForScope();
}
